﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Team.TeamIservices.MaterialManagement.IServices
{
    /// <summary>
    /// BOM服务接口---bpy
    /// </summary>
    public interface IBomServices
    {
        /// <summary>
        /// 新增BOM
        /// </summary>
        /// <param name="bOM">要添加的实体</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddBomAsync(BOM bOM);

        /// <summary>
        /// 获取物料包数据
        /// </summary>
        /// <returns>返回物料信息</returns>
        IQueryable<MaterialPicking> GetMaterialPicking();
        /// <summary>
        /// 获取BOM数据
        /// </summary>
        /// <returns>返回BOM信息</returns>
        IQueryable<BOM> GetBom(string? materialCode, string? bomCode);
        /// <summary>
        /// 删除BOM
        /// </summary>
        /// <param name="bOM">要删除数据的id</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteBomAsync(string id);
        /// <summary>
        /// 修改BOM
        /// </summary>
        /// <param name="bOM">要添加的实体</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateBomAsync(BOM bOM);
    }
}
